/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pdi;

/**
 *
 * @author skipy
 */
public class Patrat implements FiguraGeometrica,Poligon {
    public Punct a,b,c,d;
    @Override
    public double perimetru()
    {
        return 4*a.distanta(b);
    }
    @Override
    public double arie()
    {
    
    return a.distanta(b)*a.distanta(b);
    }
            
    
}
